package net.piggy.web.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AnonymousController {

    /**
     * test
     */
    @ResponseBody
    @PreAuthorize("hasAuthority('system:anonymous')")
    @RequestMapping("/anonymous")
    public String anonymous() {
        return "hello anonymous";
    }


}
